package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 插入n个订单明细数据
     * @param orderDetails
     */
    void insertBatch(List<OrderDetail> orderDetails);
    //根据订单id查询OrderDetail
    List<OrderDetail> getByOrder(Orders order);
}
